<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		
		
<script>
		 
		
		  wx.config({
			  debug: false, 
		   appId: '{$jsdk.appId}',
				timestamp: {$jsdk.timestamp},
				nonceStr: '{$jsdk.nonceStr}',
				signature: '{$jsdk.signature}',
		    jsApiList: [
		      // 所有要调用的 API 都要加到这个列表中
		      'onMenuShareTimeline',
		      'onMenuShareAppMessage',
		      'addCard'
		    ]
		  });
		
		  wx.ready(function () {
		  	
    wx.onMenuShareTimeline({
        title: '欢迎乘坐G4有轨电车',
       
        imgUrl: 'http://g4.airefp.com/ws/Mobile/Webroot/gf/images/car/g4-share-train.jpeg',
    	
     /*  link:'http://g4.airefp.com/ws/index.php?g=mobile&m=picture&a=index', */
    
      trigger: function (res) {
       
      },
      success: function (res) {
       			
				
      },
      cancel: function (res) {
       
      },
      fail: function (res) {
        alert(JSON.stringify(res));
      }
    });
    
	wx.onMenuShareAppMessage({
    /* link:'http://g4.airefp.com/ws/index.php?g=mobile&m=picture&a=index', */
         title: '欢迎乘坐G4有轨电车',
    desc: 'G4有轨电车诚邀你一起抢门票,落力自由讲!',
    imgUrl: 'http://g4.airefp.com/ws/Mobile/Webroot/gf/images/car/g4-share-train.jpeg',
    success: function () { 
	
				
				
    },
    cancel: function () { 
        // 用户取消分享后执行的回调函数
    }
});

  });
		
			
		</script>